package com.gegao.somethinginteresting.player;

/**
 * exoPlayer状态
 * Created by liuchenghui on 2015/12/03.
 */
public class ExoPlayerStatusInfo {

    private boolean playWhenReady;
    private int playbackState;

    public ExoPlayerStatusInfo(boolean playWhenReady, int playbackState) {
        this.playWhenReady = playWhenReady;
        this.playbackState = playbackState;
    }

    public boolean isPlayWhenReady() {
        return playWhenReady;
    }

    public void setPlayWhenReady(boolean playWhenReady) {
        this.playWhenReady = playWhenReady;
    }

    public int getPlaybackState() {
        return playbackState;
    }

    public void setPlaybackState(int playbackState) {
        this.playbackState = playbackState;
    }

    @Override
    public String toString() {
        return "ExoPlayerStatusInfo{" +
                "playWhenReady=" + playWhenReady +
                ", playbackState=" + playbackState +
                '}';
    }
}
